#include "stdafx.h"
#include "SecretItemPrizeDef.h"
#include "InstanceTouch.h"
DECL_INSTANCE_TOUCH(ETouch_SectetItemPrizeDef);

struct  SectetItemPrizeDefDefReflectionRegister
{
	SectetItemPrizeDefDefReflectionRegister()
	{
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_iID,INVALID_ID).Editor_SetAsPrimaryKey();
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_sDisplayName,std::string("DefaultName")).Editor_SetAsDisplayName();
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_eItemType,eERewardItemType_CARD).Editor_SetAsEnumation<ERewardItemType>();
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_iCardDef,INVALID_ID).Editor_SetAsForeignKey(eDefGroup_Default,eDefaultDef_Card);
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_iCardPecice,INVALID_ID).Editor_SetAsForeignKey(eDefGroup_Default,eDefaultDef_Card);
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_iHeroDef,INVALID_ID).Editor_SetAsForeignKey(eDefGroup_Default,eDefaultDef_HeroCard);
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_iHeroPecice,INVALID_ID).Editor_SetAsForeignKey(eDefGroup_Default,eDefaultDef_HeroCard);
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_iItemNum,1).Editor_SetAsRaw();
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_eMoneyType,EShopMoney_Cash).Editor_SetAsEnumation<EShopMoney>();
		REGISTER_REFLECTION_MEMBER(SecretItemPrizeDef,m_iPrice,1).Editor_SetAsRaw();

		GlobalClassManager::Instance().RegisterClass(SecretItemPrizeDef::s_GetReflection(),eDefaultDef_SectetItemPrizeDef);
		GlobalDefManager::Instance().RegisterDefManger(&SecretItemPrizeDefManager::Instance());

	}
}___SectetItemPrizeDefDefReflectionRegister;

rewrite  void SecretItemPrizeDef::OnArchieveReaded()
{
}

void SecretItemPrizeDefManager::OnArchieveReaded()
{
	__SectetItemPrizeDefManager::OnArchieveReaded();
}